package com.tl.khadmin.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.tl.khadmin.bean.Order;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record); 

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
    
    List<Order> selectOrderByPage(Map<String, Object> map);
    
    List<Order> listOrder(Map<String, Object> map);

	int updateStatus(@Param("id") String id, @Param("status") int status);

	int selectOrderIdByOrderNumber(String orderNumber);

	Order findByOrderId(@Param("orderId") String orderSn);

	int updateOrderSupplierId(@Param("supplierId")Integer supplierId,@Param("orderId")Integer orderId);

}